﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using ShardingWTM.Models;


namespace ShardingWTM.ProjectManage.ViewModels.ProjectFileVMs
{
    public partial class ProjectFileTemplateVM : BaseTemplateVM
    {
        public ExcelPropety Project_Excel = ExcelPropety.CreateProperty<ProjectFile>(x => x.ProjectId);

	    protected override void InitVM()
        {
            Project_Excel.DataType = ColumnDataType.ComboBox;
            Project_Excel.ListItems = DC.Set<ProjectInfo>().GetSelectListItems(Wtm, y => y.ProjectName);
        }

    }

    public class ProjectFileImportVM : BaseImportVM<ProjectFileTemplateVM, ProjectFile>
    {

    }

}
